package com.jiexinyun.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.sql.Timestamp;

@Data
@TableName("pp_output_mx")
@Schema(description = "wise万思生产登记单产量明细")
public class PpOutputMxEntity {

    @Schema(description = "主键ID", example = "1")
    private Integer id;

    @Schema(description = "父ID", example = "1001")
    private Integer pid;

    @Schema(description = "货物ID", example = "2001")
    private Integer hwid;

    @Schema(description = "工序ID", example = "3001")
    private Integer gxId;

    @Schema(description = "部门名称", example = "生产部")
    private String bmName;

    @Schema(description = "生产日期", example = "2023-01-01 08:00:00")
    private Timestamp scRq;

    @Schema(description = "备注", example = "特殊要求")
    private String bz;

    @Schema(description = "操作组", example = "A组")
    private String czyGroup;

    @Schema(description = "设备ID", example = "4001")
    private Integer equipmentId;

    @Schema(description = "责任工序ID", example = "5001")
    private Integer zrgxId;

    @Schema(description = "工作组ID", example = "6001")
    private Integer workgroupId;

    @Schema(description = "工作组名称", example = "第一班组")
    private String workgroupName;

    @Schema(description = "批号", example = "PH20230101")
    private String ph;

    @Schema(description = "货物名称", example = "钢材")
    private String hwmc;

    @Schema(description = "规格", example = "50mm×50mm")
    private String gg;

    @Schema(description = "工艺要求", example = "红色")
    private String color;

    @Schema(description = "设备名称", example = "切割机")
    private String equipment;

    @Schema(description = "工序名称", example = "切割")
    private String gxName;

    @Schema(description = "计量单位", example = "1")
    private Integer jldw;

    @Schema(description = "耗用工时", example = "8.5")
    private BigDecimal manHour;

    @Schema(description = "产出数量", example = "100.0")
    private BigDecimal sl;

    @Schema(description = "合格数量", example = "95.0")
    private BigDecimal hgSl;

    @Schema(description = "次品数量", example = "100.0")
    private BigDecimal cpSl;

    @Schema(description = "责任工序名称", example = "质检")
    private String zrgxName;

}
